package com.sy.pet.controller.client;

import com.sy.pet.commom.ResultBean;
import com.sy.pet.dto.PetDTO;
import com.sy.pet.dto.UserAuthenticationDTO;
import com.sy.pet.service.UserAuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @Author: liangSY
 * @Date: 2024/9/17
 * @ClassName: UserAuthenticationController
 * @Description: UserAuthenticationController描述
 */
@RequestMapping("/client/authentication")
@RestController
public class UserAuthenticationController {

    @Autowired
    UserAuthenticationService userAuthenticationService;

    @PostMapping
    private ResultBean<String> apply(@Valid UserAuthenticationDTO dto){
        userAuthenticationService.add(dto);
        return ResultBean.success();
    }
}
